package com.learn.dubbo.core.redis.core;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Conf {
	
	private Properties prop;
	
	private final String path = "redis.properties";
	
	public Conf(){
		Properties prop = new Properties();
		InputStream in =  Conf.class.getClassLoader().getResourceAsStream(path);
		try {
			prop.load(in);
			this.prop=prop;
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public Properties getProp() {
		return prop;
	}

	public void setProp(Properties prop) {
		this.prop = prop;
	}

	
}
